package cn.sskxyz.mongodb.compress;

import com.fasterxml.jackson.core.type.TypeReference;

public class CompressKey {

	private boolean dynamic = false;

	private String database;

	private String collection;

	private String key;

	private TypeReference<?> actualType;

	private String codec;

	public CompressKey(String database, String collection, String key) {
		this.database = database;
		this.collection = collection;
		this.key = key;
	}

	public String getDatabase() {
		return database;
	}

	public void setDatabase(String database) {
		this.database = database;
	}

	public String getCollection() {
		return collection;
	}

	public void setCollection(String collection) {
		this.collection = collection;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public TypeReference<?> getActualType() {
		return actualType;
	}

	public void setActualType(TypeReference<?> actualType) {
		this.actualType = actualType;
	}

	public String getCodec() {
		return codec;
	}

	public void setCodec(String codec) {
		this.codec = codec;
	}

	public boolean isDynamic() {
		return dynamic;
	}

	public void setDynamic(boolean dynamic) {
		this.dynamic = dynamic;
	}
}
